-module(system_api).

-export([
	msg_time/1
	,msg_disconnect/1
	,msg_error/1
]).

-include("pb.hrl").


%%%===================================================================
%%% API functions
%%%===================================================================

% 时间校正
msg_time(Time) ->
	{ok, Bin} = pb_system:pack(?p_system_time, {Time}),
	Bin.

% 服务器断开连接
msg_disconnect(Code) ->
	{ok, Bin} = pb_system:pack(?p_system_disconnect, {Code}),
	Bin.

% 错误代码 
msg_error(Code) ->
	{ok, Bin} = pb_system:pack(?p_system_error, {Code}),
	Bin.
